home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / gold / valClass.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  3.9 KB  |  197 lines

  1. /*
  2.  * The original copyright owners of the accompanying source code files have
  3.  * agreed to place such code into the public domain.  Accordingly, anyone
  4.  * who receives or obtains a copy of such source code is freely entitled to
  5.  * reproduce, use and otherwise exploit such code (including the right to
  6.  * make derivative works), at his/her own risk and expense, without any
  7.  * obligation or liability to the original copyright owners.
  8.  *
  9.  * We would appreciate (but do not require) that the following message be
  10.  * included in any derivative works:
  11.  *
  12.  * "Portions of this program were developed by Peter Broadwell, Rob Myers
  13.  * and Robin Schaufler while working in Silicon Valley."
  14.  *
  15.  * The accompanying source code files and related documentation materials
  16.  * are distributed on an "AS IS" basis, without any warranties or
  17.  * guarantees of any kind.  All implied warranties, including the implied
  18.  * warranties of merchantability and of fitness for any particular purpose,
  19.  * are expressly disclaimed.
  20.  */
  21. #include "gl.h"
  22. #include "geom.h"
  23. #include "class.h"
  24. #include "classIds.h"
  25. #include "selectors.h"
  26. #include "mbox.h"
  27. #include "panel.h"
  28. #include "valuator.h"
  29. #include "colors.h"
  30.  
  31. extern class panelClass;
  32.  
  33. extern char *selectVal(), *drawVal();
  34.  
  35. fcnTable valTable[] = {
  36.     SELECT,    selectVal,
  37.     DRAWTRACKER,drawVal,
  38.     EOTABLE,
  39. };
  40.  
  41. class valClass = {
  42.     &panelClass,
  43.     valTable,
  44.     sizeof(valuator),
  45.     VALUATOR,
  46. };
  47.  
  48. valuator valTemplate = {
  49.             /*   inst        */
  50.     &valClass,        /* myClass pointer    */
  51.             /* the rest is all NULLs*/
  52. };
  53.  
  54. extern char *selectValf(), *drawValf();
  55.  
  56. fcnTable valfTable[] = {
  57.     SELECT,    selectValf,
  58.     DRAWTRACKER,drawValf,
  59.     EOTABLE,
  60. };
  61.  
  62. class valfClass = {
  63.     &panelClass,
  64.     valfTable,
  65.     sizeof(valuatorf),
  66.     VALUATORF,
  67. };
  68.  
  69. valuatorf valfTemplate = {
  70.             /*   inst        */
  71.     &valfClass,        /* myClass pointer    */
  72.             /* the rest is all NULLs*/
  73. };
  74.  
  75. extern char *selectValDelta();
  76.  
  77. fcnTable valDeltaTable[] = {
  78.     SELECT,    selectValDelta,
  79.     DRAWTRACKER,NULL,
  80.     EOTABLE,
  81. };
  82.  
  83. class valDeltaClass = {
  84.     &valClass,
  85.     valDeltaTable,
  86.     sizeof(valdelta),
  87.     VALDELTA,
  88. };
  89.  
  90. valdelta valDeltaTemplate = {
  91.             /*   inst        */
  92.     &valDeltaClass,    /* myClass pointer    */
  93.             /* the rest is all NULLs*/
  94. };
  95.  
  96. extern char *selectValDeltaf();
  97.  
  98. fcnTable valDeltafTable[] = {
  99.     SELECT,    selectValDeltaf,
  100.     DRAWTRACKER,NULL,
  101.     EOTABLE,
  102. };
  103.  
  104. class valDeltafClass = {
  105.     &valfClass,
  106.     valDeltafTable,
  107.     sizeof(valdeltaf),
  108.     VALDELTAF,
  109. };
  110.  
  111. valdeltaf valDeltafTemplate = {
  112.             /*   inst        */
  113.     &valDeltafClass,    /* myClass pointer    */
  114.             /* the rest is all NULLs*/
  115. };
  116.  
  117. extern char *selectValMesg(), *drawValMesg(), *resetValMesg(), *oselValMesg();
  118.  
  119. fcnTable valMesgTable[] = {
  120.     SELECT,    selectValMesg,
  121.     DRAWTRACKER,drawValMesg,
  122.     KILLSELECT,    resetValMesg,
  123.     RESET,    resetValMesg,
  124.     EOTABLE,
  125. };
  126.  
  127. class valMesgClass = {
  128.     &valClass,
  129.     valMesgTable,
  130.     sizeof(valmesg),
  131.     VALMESG,
  132. };
  133.  
  134. valmesg valMesgTemplate = {
  135.             /*   inst        */
  136.     &valMesgClass,    /* myClass pointer    */
  137.             /* the rest is all NULLs*/
  138. };
  139.  
  140. extern char *selectValMesgf(),*drawValMesgf(), *resetValMesgf(),*oselValMesgf();
  141.  
  142. fcnTable valMesgfTable[] = {
  143.     SELECT,    selectValMesgf,
  144.     DRAWTRACKER,drawValMesgf,
  145.     KILLSELECT,    resetValMesgf,
  146.     RESET,    resetValMesgf,
  147.     EOTABLE,
  148. };
  149.  
  150. class valMesgfClass = {
  151.     &valfClass,
  152.     valMesgfTable,
  153.     sizeof(valmesgf),
  154.     VALMESGF,
  155. };
  156.  
  157. valmesgf valMesgfTemplate = {
  158.             /*   inst        */
  159.     &valMesgfClass,    /* myClass pointer    */
  160.             /* the rest is all NULLs*/
  161. };
  162.  
  163. fcnTable valHueTable[] = {
  164.     EOTABLE,
  165. };
  166.  
  167. class valHueClass = {
  168.     &valClass,
  169.     valHueTable,
  170.     sizeof(valhue),
  171.     VALHUE,
  172. };
  173.  
  174. valhue valHueTemplate = {
  175.             /*   inst        */
  176.     &valHueClass,    /* myClass pointer    */
  177.             /* the rest is all NULLs*/
  178. };
  179.  
  180. fcnTable valValTable[] = {
  181.     EOTABLE,
  182. };
  183.  
  184. class valValClass = {
  185.     &valClass,
  186.     valValTable,
  187.     sizeof(valval),
  188.     VALVAL,
  189. };
  190.  
  191. valval valValTemplate = {
  192.             /*   inst        */
  193.     &valValClass,    /* myClass pointer    */
  194.             /* the rest is all NULLs*/
  195. };
  196.  
  197.